package org.bigk.invoices.taglibs;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

import org.bigk.invoices.Globals;


public class VersionTag extends TagSupport {

	private static final long serialVersionUID = 6134287328009943136L;

	@Override
	public int doStartTag() throws JspException {
		
        try {
        	pageContext.getOut().write(Globals.APP_VERSION);
        } catch (IOException ioe) {
            throw new JspException(ioe.getMessage());
        }
        
        return EVAL_BODY_INCLUDE;
	}
	
}
